//
//  NSDate+Extend.h
//  HelloWorld
//
//  Created by 1 on 16/7/4.
//  Copyright (c) 2016年 zhiyou. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSDate (Extend)
-(NSInteger)year;
-(NSInteger)month;
-(NSInteger)day;
-(NSInteger)hour1;
-(NSInteger)minute1;
-(NSInteger)second1;
-(NSInteger)weak;
- (NSInteger)weakForMonthFirstDay;
- (NSUInteger)numberOfDaysInCurrentMonth;
- (NSDate *)lastMonthDate:(NSDate *)date;
- (NSDate *)nextMonthDate:(NSDate *)date;

+(NSDate *)dateWithYear:(NSInteger)year month:(NSInteger)month day:(NSInteger)day;
+(NSArray*)componentsSeparatedByDate:(NSDate*)date;
@end
